<html>
	<head>
		<title>Connection</title>
	</head>
	<body>
		<form name="myForm" action = "main.html" method="post">
			<input type="hidden" value="$mail" name="mail"/>
			<input type="submit" value="ok"/>
		</form>
		#set($result = $manager.findUser($mail, $pass))
		#if ($result)
			<script type="text/javascript">
				document.forms["myForm"].submit();
			</script>
		#else
			<script type="text/javascript">
				document.forms["myForm"].action = "index.html";
				document.forms["myForm"].submit();
			</script>
		#end
	</body>
</html>